package com.feiyu.controller;

import com.feiyu.service.HouseEchartService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author feiyu127
 * @date 2018/5/23 23:33
 * @desc
 */
@RestController
@RequestMapping("houseEchart")
public class HouseEchartController {

    @Autowired
    private HouseEchartService houseEchartService;

    @GetMapping("getProjectInfo")
    public List<Map<String,Object>> getProjectInfo() {
        return houseEchartService.getProjectInfo();
    }
    @GetMapping("getPosProjectInfo")
    public List<Map<String,Object>> getPosProjectInfo() {
        return houseEchartService.getPosProjectInfo();
    }
}
